// 委外发货接口

import request from '@/utils/request'

//委外发货 列表
export function GetListAPI(params) {
  return request({
    url: '/storage/pickingOutsource/list',
    method: 'GET',
    params
  })
}

// 委外发货 新增
export function AddDataAPI(data) {
  return request({
    url: '/storage/pickingOutsource/addOutsource',
    method: 'POST',
    data
  })
}

// 委外发货 查看
export function GetDailtAPI(data) {
  return request({
    url: '/storage/pickingOutsource/view/' + data,
    method: 'GET'
  })
}

// 委外发货提交审核
export function SubRevAPI(data) {
  return request({
    url: '/storage/pickingOutsource/submitOutsource/' + data,
    method: 'GET'
  })
}

// 委外发货 关结
export function CloseAPI(data) {
  return request({
    url: '/storage/pickingOutsource/closeOutsource',
    method: 'POST',
    data
  })
}

// 委外发货删除
export function DelDataAPI(data) {
  return request({
    url: '/storage/pickingOutsource/deleteOutsource/' + data,
    method: 'DELETE'
  })
}

// 委外发货修改
export function EditDataAPI(data) {
  return request({
    url: '/storage/pickingOutsource/updateOutsource',
    method: 'POST',
    data
  })
}

// 委外发货提交
export function SubmitAPI(data) {
  return request({
    url: '/storage/pickingOutsource/submitOutsource',
    method: 'POST',
    data
  })
}

// 审核
export function PurchaseOrderReviewAPI(data) {
  return request({
    url: '/storage/pickingOutsource/purchaseOrderReview',
    method: 'PUT',
    data
  })
}

// 委外发货明细列表查询
export function GetDailListAPI(params) {
  return request({
    url: '/storage/pickingOutsourceDetail/list',
    method: 'GET',
    params
  })
}

// 委外发货明细列表查询
export function GetDailListssAPI(params) {
  return request({
    url: '/storage/wmsStock/outsourceSum',
    method: 'GET',
    params
  })
}
